<?php

if (!defined('PS')) {
    define('PS', PATH_SEPARATOR);
}
if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}
if (!defined('LS')) {
    define('LS', PHP_EOL);
}

$extended_path = get_include_path() . PS . '.' . DS .'src/php';
$extended_path .= PS . '.' . DS .'test/php';
set_include_path($extended_path);

require_once 'PHPUnit/Framework.php';
require_once 'Zend/Loader/Autoloader.php';

Zend_Loader_Autoloader::getInstance()->registerNamespace('Zend_');
Zend_Loader_Autoloader::getInstance()->registerNamespace('PHPUnit_');
Zend_Loader_Autoloader::getInstance()->registerNamespace('MyApp\\');

// Run a single test by method name
//$test = new \MyApp\MyModule\TestHelloWorld('testTalk');

// Run all tests by reflection class
$test = new ReflectionClass(new MyApp\MyModule\TestHelloWorld);

PHPUnit_TextUI_TestRunner::run($test);

